<template>
    <div class="view-house-btns">
        <div class="clear" @click="handleClear">清空</div>
        <div class="view-house" @click="handleViewHouse">查看房屋(220套)</div>
    </div>
</template>


<script setup>

const emit = defineEmits(['clear', 'viewClick'])

const handleClear = () => {
    emit('clear')
}
const handleViewHouse = () => {
    emit('viewClick')
}

</script>


<style lang="less" scoped>
.view-house-btns {
    display: flex;
    align-items: center;
    height: 60px;
    background-color: #fff;

    .clear {
        display: inline-block;
        margin-left: 20px;
        width: 85px;
        height: 40px;
        background-color: #f3f4f6;
        border-radius: 20px;
        text-align: center;
        line-height: 40px;
        color: #dadada;
    }

    .view-house {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 240px;
        height: 40px;
        margin-left: 20px;
        background-color: var(--primary-color);
        border-radius: 20px;
        color: #fff;
    }
}
</style>